﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Product.aspx.cs" Inherits="Ajax.Web.Product" %>
<%@ OutputCache Duration="3600"  VaryByParam="*"%>
<%@ Register Src="~/Control/Top.ascx" TagName="top" TagPrefix="AjaxControl" %>
<%@ Register Src="~/Control/Footer.ascx" TagName="footer" TagPrefix="AjaxControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>产品中心 -
        <%=webset.WebName %></title>
    <%=AddMetaInfo(webset.WebKeywords,webset.WebDescription,"") %>
    <link type="text/css" rel="stylesheet" href="css/style.css" />
    <link type="text/css" rel="stylesheet" href="css/pagination.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="js/jquery.pagination.js"></script>

    <script type="text/javascript">
    $(function() {
    //分页参数设置
        $("#Pagination").pagination(<%=pcount %>, {
        callback: pageselectCallback,
        prev_text: "« 上一页",
        next_text: "下一页 »",
        items_per_page:<%=pagesize %>,
        num_display_entries:3,
        current_page:<%=page %>,
        num_edge_entries:2,
        link_to:"?<%=this.CombKeywords(this.classId, this.orderby, this.keywords, this.property) %>page=__id__"
        });
    });
    function pageselectCallback(page_id, jq) {
        //alert(page_id); 回调函数，进一步使用请参阅说明文档
    }
    </script>

</head>
<body id="product">
    <form id="form1" runat="server">
    <!--Head.Start-->
    <AjaxControl:top ID="top1" runat="server" />
    <!--Head.End-->
    <div class="main">
        <!--left.start-->
        <div class="pleft">
            <dl class="p1">
                <dt><strong>产品类别</strong></dt>
                <dd>
                    <div class="proChnnelList">
                        <%=Ajax.Web.UI.Channel.ProTxtList(0, 2)%>
                    </div>
                </dd>
            </dl>
            <dl class="p1 mtop">
                <dt><strong>推荐产品</strong></dt>
                <dd>
                    <ul class="b2">
                        <%=Ajax.Web.UI.Products.ViewTxtList2(10, 30, 0, "", "IsLock=0 and IsRed=1", "Click desc,AddTime desc")%>
                    </ul>
                </dd>
            </dl>
        </div>
        <!--left.end-->
        <!--right.start-->
        <div class="pright">
            <div class="prplace">
                <a href="Index.html">主页</a> > <a href="Product.html">产品中心</a> >
                <%=Ajax.Web.UI.Channel.ViewChannelTitle(this.classId)%>
                >
            </div>
            <dl class="p2">
                <dt><span style="float: right; margin-top: 5px;">
                    <asp:DropDownList ID="ddlOrderBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlOrderBy_SelectedIndexChanged">
                        <asp:ListItem Value="Default_view">默认排序</asp:ListItem>
                        <asp:ListItem Value="Time_asc">老款经典</asp:ListItem>
                        <asp:ListItem Value="Time_desc">最新产品</asp:ListItem>
                    </asp:DropDownList>
                </span><strong class="fc_f60">
                    <%=Ajax.Web.UI.Channel.ViewChannelTitle(this.classId)%></strong> </dt>
            </dl>
            <div class="plist">
                <ul>
                    <!--Product.Start-->
                    <asp:Repeater ID="rptList" runat="server">
                        <ItemTemplate>
                            <li><a href="Product_View-<%#Eval("Id")%>.html">
                                <img src="/Tools/Http_ImgLoad.ashx?w=114&h=114&gurl=<%#Eval("ImgUrl")%>" /></a>
                                <span><a href="Product_View-<%#Eval("Id")%>.html">
                                    <%#Eval("Title")%></a></span> </li>
                        </ItemTemplate>
                    </asp:Repeater>
                    <!--Product.End-->
                </ul>
            </div>
            <div class="pagebox">
                <div id="Pagination" class="flickr right">
                </div>
            </div>
        </div>
        <!--right.end-->
    </div>
    <!--footer Start-->
    <AjaxControl:footer ID="Footer" runat="server" />
    <!--footer End-->
    </form>
</body>
</html>
